home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 012a / lib194.zip / SEARCH.TXT < prev    next >
Text File  |  1992-10-14  |  1KB  |  32 lines

  1. SEARCH.TXT -- explanation out of the file SEARCH.ASM for the SEARCH.BIN
  2. file, by Roland Bourcherau (Borland Technical Support).
  3.  
  4. SEARCH.BIN uses DOS' find first and find next functions for getting info
  5. about files matching a wildcard specification and possibly an attribute mask.  
  6. Can be called with up to six parameters, or at least two.  The first 
  7. parameter is necessary to indicate the search mode; either to
  8. find the first file (indicated by a 1) or to find subsequent files (indicated 
  9. by anything other than a 1). The second parameter is a filename or wild card 
  10. string.
  11.  
  12. parameter 1: Call type (1 for first call).
  13. parameter 2: Wildcard specification.
  14. parameter 3: Attribute mask.      (Optional)
  15. parameter 4: Receives file date.
  16. parameter 5: Receives file time.
  17. parameter 6: Receives file size.
  18.  
  19. Example:     . LOAD Search
  20.          . ? CALL("Search",1,"*.dbf       ")     && Two parms.
  21.             0
  22.  
  23.          . fspec = "SQLHOME\*.* "
  24.          . fattr = "D     "              && Include directories!
  25.          . fdate = "  /  /  "            && Avoid bug.
  26.          . ftime = "  :  :  "
  27.          . fsize = 0
  28.          . CALL Search WITH 1,fspec,fattr,fdate,ftime,fsize
  29.          . ? fspec,fsize
  30.          SQLDBASE.STR        194
  31.  
  32.